<template>
    <div class="root">
        <p class="title color-fff">-- 查询条件 --</p>
        <header>
            <label>
                <span class="date-title color-fff">选择日期</span>
                <DatePicker
                    :default-value="moment('2015/01/01', 'YYYY/MM/DD')"
                    :format="'YYYY/MM/DD'"
                />
            </label>
            <Button>历史查看</Button>
            <Button>实时查看</Button>
        </header>
        <main>
            <span class="color-fff">历史视频个数： 45个</span>
            <div class="player">
                <video controls src="/src/assets/mv.mp4"></video>
                <div class="btn">
                    <Button>上一个</Button>
                    <Button>下一个</Button>
                    <Button>关闭</Button>
                </div>
            </div>
        </main>
    </div>
</template>

<script>
    import { DatePicker, Button } from "ant-design-vue";
    import moment from "moment";
    export default {
        components: { DatePicker, Button },
        setup() {
            return { moment };
        },
    };
</script>

<style lang="scss" scoped>
    .root {
        padding: 30px;
    }
    .title {
        font-size: 18px;
    }

    header {
		display: flex;
		align-items: center;
        label,
        button {
            margin-right: 50px;
            border-radius: 8px;
        }

        .date-title {
            margin-right: 15px;
        }
    }

    main {
        margin-top: 30px;
        display: flex;
		align-items: center;
		justify-content: center;
		span {
			margin: 10px;
		}
        .player {
            display: flex;
            flex-direction: column;
            video {
				margin: 30px 0;
                width: 640px;
				border-radius: 10px;
            }
            .btn {
                display: flex;
                justify-content: space-around;
                button {
                    border-radius: 8px;
                }
            }
        }
    }
</style>